﻿using Storage.Mapping.BucketImages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Storage.Services.BucketImages
{
    public interface IBucketImagesService
    {

        /// <summary>
        /// 通过url路径获取图片
        /// </summary>
        /// <param name="relativeUrl"></param>
        /// <returns></returns>
        BucketImagesMapping getBacketImage(string relativeUrl);

        /// <summary>
        /// 通过sha1值获取
        /// </summary>
        /// <param name="sha1"></param>
        /// <returns></returns>
        BucketImagesMapping getBySHA1(string sha1);
         
        /// <summary>
        /// 保存图片
        /// </summary>
        /// <param name="entity"></param>
        void insertImage(Entities.BucketImage entity);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        void deleteImage(int id);



    }
}
